<script>
import mineMixin from "@/mixin/myMixin";

export default {
  name: "mixinPge",
  mixins: [mineMixin],
  data(){
    return {
      mixinMsg:'page的mixinMsg'
    }
  },
  methods:{
    change(){
      this.mixinMsg='修改的内容'
      console.log(this.mixinMsg)
    }
  },
  created() {
    console.log(this.mixinMsg, 'mixinPage的数据');
    this.setMsg()
  }
}
</script>

<template>
<div>
  混入
  <button @click="change">修改msg</button>
</div>
</template>

<style scoped lang="less">

</style>